﻿using UnityEngine;
using System.Collections;

public class BuildingData : MonoBehaviour {

    public string buildingName;
    public Building.BuildingType buildingType;
    public Building.BuildingSize buildingSize;
    public int areaOfEffect;

	// Use this for initialization
	void Start () {

        if (Network.isClient)
        {
            this.gameObject.layer = 0;
        }

	}
	
	// Update is called once per frame
	void Update () {

	}

    void OnSerializeNetworkView(BitStream stream, NetworkMessageInfo info)
    {
        if (stream.isWriting)
        {
            // TODO: Add building data that needs to serialize across the network
        }
        else
        {
            // TODO: Read building data from the server
        }
    }
}
